package com.bw.repair.api

import com.bw.http.http.okhttp.HttpRetrofitAnnotation
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import retrofit2.create
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
class RepairHiltModel {
    @Provides
    @Singleton
    fun getRepairModel(@HttpRetrofitAnnotation retrofit: Retrofit):RepairApiServer{
        return retrofit.create(RepairApiServer::class.java)
    }
}